package ar.com.unlp.fi.lrs.aspecs;

import org.apache.log4j.Logger;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

import ar.com.unlp.fi.lrs.service.StatementService;


@Aspect
public class LoggingAspect {
	
	
	private Logger logguer= Logger.getLogger(StatementService.class);
	
	@Pointcut("within(ar.com.unlp.fi.lrs.service..)")
	private void servicePointcut(){ }
	
	
	@Before("servicePointcut")
	public void doBeforeTask(){
		logguer.info("Entrando al servicio!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
	}
	
//	
//	@AfterThrowing(pointcu "businessService()", throwing="ex")
//	public void doAfterThrowingTask(Exception ex){
//	  // you can intercept thrown exception here.
//	  
//	}
	
	
}
